<?php echo $this->Html->css('admin/admin_images'); ?>

<!-- Modal -->
<div id="images_editor" class="modal hide fade" style="width: 980px; margin-left: -490px; top: 5%;" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
        <h4 id="myModalLabel">Image Manager</h4>
    </div>
    
    <div class="modal-body">
    
        <div class="row-fluid">
            <input type="file" value="Choose Image" name="uploadfile" id="img-upload" multiple="multiple" />
            <iframe src="" height="1" width="1" name="img-frame" id="img-frame" style="position: absolute; left: -9999px"></iframe>
            <input type="hidden" id="img-upload-url" value="<?php echo $this->Html->url(array('controller' => 'images', 'action' => 'upload')); ?>" />
        </div>
        
        <div id="images-list">
            <ul id="images">
                <?php for($i = 0; $i < 24; $i++) { ?>
                <li class="image-item">

                </li>
                <?php } ?>
            </ul>
            
        </div>
        <div class="images-nav"></div>
    </div>
    
    <div class="modal-footer">
        <button disabled="" class="btn btn-info" id="save-changes-btn">Save Changes</button>
        <button class="btn" data-dismiss="modal" aria-hidden="true">Close</button>
    </div>
</div>

<input type="hidden" id="image_manager_url" value="<?php echo $this->Html->url(array('controller' => 'images', 'action' => 'manager')); ?>" />
<input type="hidden" id="image_tag_url" value="<?php echo $this->Html->url(array('controller' => 'images', 'action' => 'tag')); ?>" />
<input type="hidden" id="image_upload_url" value="<?php echo $this->Html->url(array('controller' => 'images', 'action' => 'upload')); ?>" />

<?php echo $this->Html->script('app/views/organisations/images.js'); ?>
